import React,{Component} from 'react';
import './optimization.scss';
import {
  Link
} from 'react-router-dom';
export default class Optimization extends Component{
	render(){
		return(
			<div className="Op_banner">
        <ul id="qq">
					{this.props.preList.map((item, index) => {
						return (
							<Link to={
								{
									pathname: '/company',
									state: {shop_id: item.shop_id}
								}
							} key={index}>
								<li >
			          	<img src={item.img}/>
									<div className='shop_desc'>{item.title}</div>
									<div className='shop_name'>{item.sub_title}</div>
								</li>
							</Link>
						)
					})}
        </ul>
			</div>
		)
	}
}
